package com.nf.ch03.test09.hk01;

/**
 * @author lwj
 * @date 2025-03-06
 * @vesion 1.0.0
 */
public class DutchAddressAdapter extends DutchAddress{
    private Address address;

    public DutchAddressAdapter(Address addr) {
        address = addr;
    }
    public void straat(){
        address.street();
        // 重写父类方法
    }

    @Override
    public void postcode(){
        // 重写父类方法
        address.zip();
    }

    @Override
    public void plaats(){
        // 重写父类方法
        address.city();
    }
}
